*** Variables ***
#### Project list page
${Project_toolbar_CreateButton}    xpath=//i[@class='add-icon-24']
${Project_toolbar_EditButton}    xpath=//i[@class='edit-icon-24']
${Project_toolbar_ViewButton}    xpath=//i[@class='search-icon-24']
${Project_toolbar_DeleteButton}    xpath=//i[@class='trash-icon-24']
${Project_toolbar_DataCleaningButton}    xpath=//i[@class='brush-alt-2-icon-24']
${Project_toolbar_TemplateManagementButton}    xpath=//div[@class='col-md-12']//i[@class='excel-export-24']
${Project_toolbar_RoundMgmtButton}    css = .sync-icon-24
${Project_toolbar_LaneManagementButton}    xpath=//i[@class='edit-template-24']
${Project_toolbar_Submit/ReactivateButton}    xpath=//div[.='Submit/Reactivate Project']
${Project_toolbar_CloseButton}    xpath=//div[.='Close Project']
${Project_toolbar_CopyData}    xpath=//div[.='Copy Data']
${Project_toolbar_ReopenProject}    xpath=//div[.='Reopen Project']
${Project_toolbar_Submit/Reactivate Project}    xpath=//div[.='Submit/Reactivate Project']

#### project search page
${project_search_criteria}    css = [data-ng-model='qe.criterionName']
${project_search_operator}    css = [data-ng-model='qe.operatorName']
${project_search_operand}    css = [data-validation]
${project_search_searchButton}    css = [data-tr='locator.search']


#### create Project page
${Project_create_ProjectName}    xpath = //input[@id='projectName']
${Project_create_TenderID}    xpath = //input[@id='tender']
${Project_create_TenderIdDropDown}    css = .typeahead
${Project_create_Mode}    select[id='mode']
${Project_create_Customer}    xpath=//input[@id='customer']
${Project_create_VerticalMarket}    xpath=//input[@id='verticalMarket']
${Project_create_ModeLCL}    [ng-model='tender.modeLcl']
${Project_create_DeadlinetoTMDate}    xpath=//div[@id='deadLineTM']//input
${Project_create_DeadlinetoTMHour}    css = [data-ng-model='tempHourValue']
${Project_create_DeadlinetoTMMinute}    css = [data-ng-model='minuteValue']
${Project_create_AM}    css = [value='am']
${Project_create_PM}    css = [value='pm']
${Project_create_Level}    xpath=//input[@id='level']
${Project_create_RateValidityFrom}   xpath=//div[@id='validFrom']//input
${Project_create_RateValidityTo}    xpath=//div[@id='validTo']//input
${Project_create_Deputies}    css = .add-user-24
${Project_create_Description}    xpath=//input[@id='description']
${Project_create_UploadButton}    css = [data-ng-click='uploadFile()']
${Project_create_DeleteButton}    css = [data-ng-click='deleteSelectedFiles()']
${Project_create_selectDocumentFlag}    css = [type='checkbox']
${Project_create_ProjectOwner}    xpath=//input[@id='projectOwner']
${Project_create_CreateDate}    xpath=//input[@id='createDate']
${Project_create_Status}    xpath=//input[@id='status']
${Project_create_SaveButton}    css = [data-ng-click='saveButtonPressed()']
${Project_create_CancelButton}    css = .small-space-left

###upload template
${upload_addFileButton}    xpath=//input[@name='file']

###delete confirm dialog
${project_delete_yesButton}    xpath = //span[.='Yes']

####Routing Confirmation

${Project_RoundMgmt_RoutConfirmButton}    css = [data-ng-click='routingConfirmation(currentUserGroup)']
${Project_RoundMgmt_SelectLanesButton}    css = [data-ng-click='selectLanes()']
${Project_RoundMgmt_SanityCheckButton}    css = [data-ng-click='validationSetup()']
${Project_RoundMgmt_ReOpenRoundButton}    css = [data-ng-click='reopenRound()']
${Project_RoundMgmt_StartButton}    css = [data-ng-click='startRound()']
${Project_RoundMgmt_CloseRoundButton}    css = [data-ng-click='closeRound()']
${Project_RoundMgmt_StartConfirmButton}    css = [data-ng-click='confirmYes()']
${Project_RoundMgmt_Confirm_SendButton}    css = [data-ng-click='sendEmail()']
${Project_RoundMgmt_CurrentRole}    //div[@class='custom-select']
${Project_RoundMgmt_CloseButton}    xpath = //button[.='Close']
${Project_RoundMgmt_SendNotifButton}    css = [data-ng-click='sendNotification()']
${Project_RoundMgmt_DownloadIPTButton}    css = [data-ng-click='downloadInternalTemplate()']
${Project_RoundMgmt_SubmissionButton}    css = [data-ng-click='submission()']
${Project_RoundMgmt_Currency}    css = [ng-model='selectionIpt.currency']
${Project_RoundMgmt_NewRoundButton}    css = [data-ng-click='newRound()']
${Project_RoundMgmt_ReopenRoundButton}    css = [data-ng-click='reopenRound()']

${Project_RoundMgmt_DownloadButton}    css = [data-ng-click='downloadInternalTemplate()']
${Project_RoundMgmt_ColMaintainButton}    css = [data-ng-click='modifyIptRule()']
${Project_RoundMgmt_UpdateLaneButton}    css = [data-ng-click='modifyIptData()']
${Project_RoundMgmt_UnlockButton}    css = [data-ng-if='isDisplayUnlockBtn']
${Project_RoundMgmt_LockButton}    css = [data-ng-if='isDisplayLockBtn']
${Project_RoundMgmt_Attach_UploadButton}    css = [data-ng-click='uploadRoundDocument()']
${Project_RoundMgmt_Attach_DownloadButton}    css = [data-ng-click='downloadRoundDocuments()']
${Project_RoundMgmt_Attach_DeleteButton}    css = [data-ng-click='deleteRoundDocument()']
${Project_RoundMgmt_Attach_SetAuthButton}    css = [data-ng-click='setAuthority()']

####Routing Confirmation Dialog####
${Project_RoundMgmt_Routing_Download}    css = [data-ng-click='downloadRegionalExcelForOwner()']
${Project_RoundMgmt_Routing_Confirm}    css = [data-ng-click='confirmRegionalRoutingConfirmation()']
${Project_RoundMgmt_Routing_Setup}    css = [data-ng-click='openSetupDialog()']
${Project_RoundMgmt_Routing_Close}    css = .btn[data-ng-click='$close()']
${Project_RoundMgmt_Routing_Confirm_Approve}    xpath = //button[@class='btn ng-scope']
${Project_RoundMgmt_Routing_Confirm_Reject}    xpath = //button[span="Reject"]
${Project_RoundMgmt_Setup_Download}    css = [data-ng-click='downloadSetupFile()']
${Project_RoundMgmt_Setup_Upload}    css = [data-ng-click='uploadSetupFile()']
${Project_RoundMgmt_Setup_Cancel}    xpath = //button[.='Cancel']

${Project_RoundMgmt_Setup_UploadAddFile}    xpath= //ng-form[@class='jqFileUpload ng-pristine ng-valid ng-scope']
${Project_RoundMgmt_Setup_UploadAddFile_OKButton}  xpath= //button[@class='btn ng-scope btn-primary']

${Project_RoundMgmt_Submit_SelectAll}    css = [data-ng-model='all']
${Project_RoundMgmt_Submit_UploadButton}     css = [data-ng-click='uploadFile()']

####Column Maintaince Dialog####
${Project_ColMaintain_SaveButton}    css = [data-ng-click='saveProjectTemplateRule()']
${Project_ColMaintain_CloseButton}    xpath = //button[.='Close']

####Update Lane Dialog####
${Project_UpdateLane_DownloadButton}    css = [data-ng-click='downloadExistedLanes()']
${Project_UpdateLane_UploadButton}    css = [data-ng-click='uploadExistedLanes()']
${Project_UpdateLane_CloseButton}    css = [data-ng-click='closeModel()']

###Assignment
${Project_RoundMgmt_AssignButton}    xpath=//i[@class='add-user-24']
${Project_RoundMgmt_Assign_ApacTab}    xpath = //a[.='APAC']
${Project_RoundMgmt_Assign_EuropeTab}    xpath = //a[.='EUROPE']
${Project_RoundMgmt_Assign_NamTab}    xpath = //a[.='NAM']
${Project_RoundMgmt_Assign_CountryTab}    xpath=//h4[.="Assignment"]/../..//a[.="Country"]
${Project_RoundMgmt_Assign_ClusterTab}    xpath=//h4[.="Assignment"]/../..//a[.="Cluster"]
${Project_RoundMgmt_Assign_AUTab}    xpath=//h4[.="Assignment"]/../..//a[.="AU"]
${Project_RoundMgmt_Assign_CNTab}    xpath=//h4[.="Assignment"]/../..//a[.="CN-N"]
${Project_RoundMgmt_Assign_DETab}    xpath=//h4[.="Assignment"]/../..//a[.="DE"]
${Project_RoundMgmt_Assign_USTab}    xpath=//h4[.="Assignment"]/../..//a[.="US"]
${Project_RoundMgmt_Assign_AustraliaTab}    xpath=//h4[.="Assignment"]/../..//a[.="Australia & New Zealand"]
${Project_RoundMgmt_Assign_GermanyTab}    xpath=//h4[.="Assignment"]/../..//a[.="Germany & Switzerland"]
${Project_RoundMgmt_Assign_ChinaTab}    xpath=//h4[.="Assignment"]/../..//a[.="Greater China"]
${Project_RoundMgmt_Assign_Add}    xpath = //div[@class='tab-pane ng-scope active']//div[@class='tab-pane ng-scope active']//button[1]
${Project_RoundMgmt_Assign_AddAll}    xpath= //div[@class='tab-pane ng-scope active']//div[@class='tab-pane ng-scope active']//button[@class='btn btn-default divider']
${Project_RoundMgmt_Assign_Remove}    xpath= //div[@class='tab-pane ng-scope active']//div[@class='tab-pane ng-scope active']//button[3]
${Project_RoundMgmt_Assign_RemoveAll}    xpath= //div[@class='tab-pane ng-scope active']//div[@class='tab-pane ng-scope active']//button[4]

${Project_RoundMgmt_Assign_SaveButton}    css = [data-ng-click='saveButtonPressed()']
${Project_RoundMgmt_Assign_ConfirmButton}    css = [data-ng-click='saveButtonPressed()']

${Project_RoundMgmt_Assign_APAC_Deadline}    css = #regionAssignmet_Date_0_0
${Project_RoundMgmt_Assign_EUROPE_Deadline}    css = #regionAssignmet_Date_0_1
${Project_RoundMgmt_Assign_NAM_Deadline}    css = #regionAssignmet_Date_1_0

${Project_RoundMgmt_Assign_Country_row1col1_Deadline}    css = #rcountry_Date_0_0
${Project_RoundMgmt_Assign_Country_row1col2_Deadline}    css = #rcountry_Date_0_1
${Project_RoundMgmt_Assign_Country_row2col1_Deadline}    css = #rcountry_Date_1_0
${Project_RoundMgmt_Assign_Country_row2col2_Deadline}    css = #rcountry_Date_1_1

${Project_RoundMgmt_Assign_Cluster_row1col1_Deadline}    css = #clusterAssignmet_Date_0_0
${Project_RoundMgmt_Assign_Cluster_row1col2_Deadline}    css = #clusterAssignmet_Date_0_1
${Project_RoundMgmt_Assign_Cluster_row2col1_Deadline}    css = #clusterAssignmet_Date_1_0
${Project_RoundMgmt_Assign_Cluster_row2col2_Deadline}    css = #clusterAssignmet_Date_1_1

###Confirm
${Project_RoundMgmt_Confirm_Download}    css = [data-ng-click='downloadRegionalRoutingConfirmationExcel()']
${Project_RoundMgmt_Confirm_Upload}    css = [data-ng-disabled='uploadDisabled']
${Project_RoundMgmt_Confirm_Cancel}    xpath = //button[.='Cancel']
${Project_RoundMgmt_Confirm_UploadAddFile}    css = .file-chooser
##submit
${Project_RoundMgmt_Submit_SelectAll}    css = [data-ng-model='all']
${Project_RoundMgmt_Submit_UploadButton}     css = [data-ng-click='uploadFile()']
${Project_RoundMgmt_Submit_SubmitButton}     css = [data-ng-click='submitUploads()']
${Project_RoundMgmt_Submit_CloseButton}     xpath = //button[.='Close']
${Project_RoundMgmt_Submit_ErrReportButton}     css = [data-ng-click='downloadReportInfo()']

###Sanity Check Dialog
${Project_RoundMgmt_SanityCheck_laneDownloadButton}    css = [data-ng-click='download()']
${Project_RoundMgmt_SanityCheck_laneUploadButton}    css = [data-ng-click='upload()']
${Project_RoundMgmt_SanityCheck_CancelButton}    xpath = //button[.='Cancel']
${Project_RoundMgmt_SanityCheck_XrayDownloadButton}    css = [data-ng-click='downloadXrayCountries()']
${Project_RoundMgmt_SanityCheck_XrayUploadButton}    css = [data-ng-click='uploadXrayCountries()']
${Project_RoundMgmt_X-RayCheck_laneDownloadButton}    css = [data-ng-click='downloadXrayCountries()']
${Project_RoundMgmt_X-RayCheck_laneUploadButton}    css = [data-ng-click='uploadXrayCountries()']

###Unlock Dialog
${Project_RoundMgmt_Unlock_LaneTab}    xpath = //a[.='Lane']
${Project_RoundMgmt_Unlock_DownloadButton}    css = [data-ng-click='download()']
${Project_RoundMgmt_Unlock_UploadButton}    css = [data-ng-click='upload()']

${Project_RoundMgmt_Unlock_RegionTab}    xpath = //a[.='Region']
${Project_RoundMgmt_Unlock_SelectAll}    xpath = //b[.='Select All']
${Project_RoundMgmt_Unlock_UnlockButton}    xpath = //div[@class='modal-dialog']//button[.='Unlock']
${Project_RoundMgmt_Unlock_CloseButton}    xpath = //div[@class='modal-dialog']//button[.='Close']

###Lane Mangement
# ${Project_LaneMgmt_UpdateRadio}    css = [value='update']
${Project_LaneMgmt_UpdateRadio}    xpath=//input[@value='update']
# ${Project_LaneMgmt_DeleteRadio}    css = [value='delete']
${Project_LaneMgmt_DeleteRadio}    xpath=//input[@value='delete']
# ${Project_LaneMgmt_AddRadio}    css = [value='create']
${Project_LaneMgmt_AddRadio}    xpath=//input[@value='create']
${Project_LaneMgmt_UpdateInfo}    xpath = //div[@class='form-group col-md-12']/div[contains(.,'Update Existing Lanes')]/input
${Project_LaneMgmt_DeleteInfo}    xpath = //div[@class='form-group col-md-12']/div[contains(.,'Delete Existing Lanes')]/input
${Project_LaneMgmt_AddInfo}    xpath = //div[@class='form-group col-md-12']/div[contains(.,'Add New Lanes')]/input
${Project_LaneMgmt_NextButton}    css = [data-ng-click='nextAction()']
${Project_LaneMgmt_CloseButton}    css = .btn[data-ng-click='closeModal()']
${Project_LaneMgmt_MessageInfo}    css = [ng-bind-html='item.message']

###Lane Mangement Update Lane Dialog
${Project_LaneMgmt_UpdateLane_DownloadButton}    css = [data-ng-click='downloadExistedLanes()']
${Project_LaneMgmt_UpdateLane_UploadButton}    css = [data-ng-click='uploadExistedLanes()']
${Project_LaneMgmt_UpdateLane_BackButton}    css= [data-ng-hide='hideBack']
${Project_LaneMgmt_UpdateLane_CloseButton}    css= [data-ng-click='closeModel()']


###Lane Mangement Delete Lane Dialog
${Project_LaneMgmt_DeleteLane_UploadButton}    css = [data-ng-click='uploadDeleteLanes()']
${Project_LaneMgmt_DeleteLane_BackButton}    css= [data-ng-click='back()']
${Project_LaneMgmt_DeleteLane_CloseButton}    css= [data-ng-click='closeModel()']
${Project_LaneMgmt_DeleteLane_DownloadTemplate}    xpath=//label[@class='ng-binding']
${Project_LaneMgmt_DeleteLane_AddFile}    xpath=//input[@name='file']
${Project_LaneMgmt_DeleteLane_ConfirmButton}    xpath=//button[@class='btn small-space-left ng-scope']
${Project_LaneMgmt_DeleteLane_CloseButton3}    xpath=//button[@class='btn small-space-left']

###Lane Mangement Add Lane Dialog
${Project_LaneMgmt_AddLane_UploadButton}    css = [data-ng-click='uploadFile()']
${Project_LaneMgmt_AddLane_BackButton}    xpath= //button[.='Back']
${Project_LaneMgmt_AddLane_CloseButton}    css= [data-ng-click='closeModel()']

###Submit/Reactivate Project Dialog
${Project_SubReact_MessageInfo}    css= [ng-bind-html='message']
${Project_SubReact_YesButton}    xpath = //button[@class='btn ng-scope']
${Project_SubReact_NoButton}    xpath= //button[@class='btn ng-scope btn-primary']

###Close Project Dialog
${Project_Close_MessageInfo}    css= [ng-bind-html='message']
${Project_Close_YesButton}    xpath = //button[@class='btn ng-scope']
${Project_Close_NoButton}    xpath= //button[@class='btn ng-scope btn-primary']


###Data Cleaning
###Check Box
${Project_DataClean_RoutingLocation}    css = [value='location']
${Project_DataClean_RoutingPort}    css = [value='port']

${Project_DataClean_CustomerServiceLevel}    xpath = //label[contains(.,'Customer Service Level')]
${Project_DataClean_CustomerLaneID}    xpath = //label[contains(.,'Customer Lane ID')]
${Project_DataClean_OriginType}    xpath = //label[contains(.,'Origin Type')]
${Project_DataClean_DestinationType}    xpath = //label[contains(.,'Destination Type')]
${Project_DataClean_OriginPostalCode}    xpath = //label[contains(.,'Origin Postal Code')]
${Project_DataClean_DestinationPostalCode}    xpath = //label[contains(.,'Destination Postal Code')]
${Project_DataClean_CustomerOriginAirport}    xpath = //label[contains(.,'Customer Origin Airport')]
${Project_DataClean_CustomerDestinationAirport}    xpath = //label[contains(.,'Customer Destination Airport')]
${Project_DataClean_NumberofShipments}    xpath = //label[contains(.,'Number of Shipments')]
${Project_DataClean_Volumecbm}    xpath = //label[contains(.,'Volume (cbm)')]
${Project_DataClean_Actualweight}    xpath = //label[contains(.,'Actual weight in kg')]
${Project_DataClean_Chargeableweight}    xpath = //label[contains(.,'Chargeable weight in kg')]
${Project_DataClean_CommodityDescription}    xpath = //label[contains(.,'Commodity Description')]
${Project_DataClean_CommodityRemarks}    xpath = //label[contains(.,'Commodity Remarks')]
${Project_DataClean_DGRClass}    xpath = //label[contains(.,'DGR Class')]
${Project_DataClean_DGRUNNo}    xpath = //label[contains(.,'DGR UN No.')]
${Project_DataClean_DGRPAX/CAO}    xpath = //label[contains(.,'DGR PAX/CAO')]
${Project_DataClean_TransitTimeDtoA}    xpath = //label[contains(.,'Transit Time Door to Airport in hours')]
${Project_DataClean_TransitTimeAtoA}    xpath = //label[contains(.,'Transit Time Airport to Airport in hours')]
${Project_DataClean_TransitTimeAtoD}    xpath = //label[contains(.,'Transit Time Airport to Door in hours')]
${Project_DataClean_TransitTimeDtoD}    xpath = //label[contains(.,'Transit Time Door to Door in hours')]

${Project_DataClean_CustomerDelTerm}    xpath = //label[contains(.,'Customer’s Delivery Term')]
${Project_DataClean_OriginCFS}    xpath = //label[contains(.,'Origin CFS')]
${Project_DataClean_DestinationCFS}    xpath = //label[contains(.,'Destination CFS')]
${Project_DataClean_WeightinMetric}    xpath = //label[contains(.,'Weight in Metric Tons')]
${Project_DataClean_Volumeincbm}    xpath = //label[contains(.,'Volume in cbm')]
${Project_DataClean_IMOClass}    xpath = //label[contains(.,'IMO Class')]
${Project_DataClean_IMOUNNo}    xpath = //label[contains(.,'IMO UN No.')]
${Project_DataClean_PlaceOrigin}    xpath = //label[contains(.,'Place Origin')]
${Project_DataClean_PlaceDestination}    xpath = //label[contains(.,'Place Destination')]

${Project_DataClean_CustomerPortofLoad}    xpath = //label[contains(.,'Customer Port of Load')]
${Project_DataClean_CustomerPortofDischarge}    xpath = //label[contains(.,'Customer Port of Discharge')]
${Project_DataClean_Volume20}    xpath = //label[contains(.,'Volume Containers 20')]
${Project_DataClean_Volume40}    xpath = //div[16]//label[@class='checkbox-inline ng-binding']
${Project_DataClean_Volume40HC}    xpath = //label[contains(.,'Volume Containers 40HC')]
${Project_DataClean_Volume45}    xpath = //label[contains(.,'Volume Containers 45')]
${Project_DataClean_VolumeTEU}    xpath = //label[contains(.,'Volume TEU Total')]
${Project_DataClean_CustomerOriginPlace}    xpath = //label[contains(.,'Customer Origin Place')]
${Project_DataClean_CustomerDestinationPlace}    xpath = //label[contains(.,'Customer Destination Place')]

${Project_DataClean_CloseButton}    css = .small-space-left

###Copy Data
${Project_CopyData_Mode}    //div/select[@name='mode']
${Project_CopyData_Customer Name}    //input[@id='customer']
${Project_CopyData_TenderID}    //input[@name='tenderId'][@placeholder='ALL']
${Project_CopyData_TenderLead}    //input[@name='tenderLead'][@placeholder='ALL']
${Project_CopyData_RFQLaunchDate}    //input[@placeholder='DD/MM/YYYY']
${Project_CopyData_SearchButton}    //button[@name='searchButton']
${Project_CopyData_CopyDataButton}    //button[contains(text(),"Copy Data")]
${Project_CopyData_Noentrypresent}    //span[contains(text(),"No entry present")]
${Dialog_yesButton}    xpath = //span[.='Yes']
${CongratulationsDialog_OKButton}    //h4[contains(text(),"Congratulations")]/../..//span[contains(text(),"OK")]